package com.tech.platform.cms.authz.sso.exception;

import com.tech.platform.cms.common.constant.Constant;

public class NoSuchHgcTokenException extends RuntimeException{

    private Integer code;
    private String errorMessage;

    public NoSuchHgcTokenException() {
        super("找不到用户token！");
        this.code = Constant.AUTHORIZATIONERROR;
        this.errorMessage = "找不到用户token！";
    }

    public NoSuchHgcTokenException(Exception exception) {
        super(exception.getMessage());
        this.code = Constant.AUTHORIZATIONERROR;
        this.errorMessage = exception.getMessage();
    }
}
